#!/bin/bash
source /etc/profile
workdir={{ rocketmq.install_dir }}rocketmq



start(){
    /bin/bash $workdir/bin/mqnamesrv
}

stop(){
    /bin/bash $workdir/bin/mqshutdown namesrv
}

case $1 in
        start)
                start
                ;;
        stop)
                stop
                ;;
        restart)
                stop
                start
                ;;
esac
